package org.example.JUC.waitTest.producerAndConsumer;

import org.example.JUC.Tools.MyBlockingQueue;
import org.example.JUC.waitTest.producerAndConsumer.Consumer;
import org.example.JUC.waitTest.producerAndConsumer.Producer;

/**
 * @description:
 * @author: farprt
 * @create: 2022-08-20 20:11
 **/
public class App {
    public static void main(String[] args) {
        MyBlockingQueue<String> queue=new MyBlockingQueue<>(10);
        new Producer(queue).start();
        new Consumer(queue).start();
    }
}